<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>测试nginx代理服务器</title>
    <script src="js/jquery-1.12.4.min.js"></script>
</head>

<body>
    <button type="button" id="btn">发送代理请求</button>
    <script>
        let url = 'https://api.douban.com/v2/book/1220562'
        let btn = document.getElementById('btn')
        console.log(btn)
        console.log(document.getElementsByTagName('button'))
        btn.addEventListener('click', function () {
            $.get('api/v2/book/1220562', res => {
                console.log(res)
            })
        })
    </script>
</body>

</html>